package com.shuwen.gcdj.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.strategy.request.StrategyPageReq;
import com.shuwen.gcdj.bean.strategy.response.StrategyPageResp;
import com.shuwen.gcdj.entity.basics.BasicsStrategy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :yys
 * @date : 2023/5/11 9:11
 */
@Mapper
public interface BasicsStrategyMapper extends BaseMapper<BasicsStrategy> {

    /**
     * 获取策略列表分页信息
     * @param page
     * @param req
     * @return
     */
    IPage<StrategyPageResp> getStrategypage(Page<StrategyPageResp> page, @Param("req") StrategyPageReq req);

    /**
     * 策略关联的设备名称
     * @param id
     * @return
     */
    List<String> getName(@Param("id")String id);

    List<StrategyPageResp> getstategytemplatelist();
}
